import Home from '@/views/Home'
import LzTabbar from '@/components/common/LzTabbar'

const Recommend = () => import('@/views/Recommend')
const Mine = () => import('@/views/Mine')
const Community = () => import('@/views/Community')

const routes = [
  {
    path: '/',
    redirect: '/home',
    meta: {
      isTabbar: false,
      title: '首页',
      icon: 'home-o'
    }
  },
  {
    path: '/home',
    name: 'Home',
    components: {
      default: Home,
      LzTabbar: LzTabbar
    },
    meta: {
      isTabbar: true,
      title: '首页',
      icon: 'home-o'
    }
  },
  {
    path: '/recommend',
    name: 'Recommend',
    components: {
      default: Recommend,
      LzTabbar
    },
    meta: {
      isTabbar: true,
      title: '推荐',
      icon: 'home-o'
    }
  },
  {
    path: '/community',
    name: 'Community',
    components: {
      default: Community,
      LzTabbar
    },
    meta: {
      isTabbar: true,
      title: '社区',
      icon: 'home-o'
    }
  },
  {
    path: '/mine',
    name: 'Mine',
    components: {
      default: Mine,
      LzTabbar
    },
    meta: {
      isTabbar: true,
      title: '我的',
      icon: 'home-o'
    }
  }
]

export default routes
